# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Michał Polański <michal@polanski.me>
pkgname=fnott
pkgver=1.4.1
pkgrel=1
pkgdesc="Keyboard driven and lightweight Wayland notification daemon"
url="https://codeberg.org/dnkl/fnott"
license="MIT"
arch="all"
makedepends="
	meson
	pixman-dev
	libpng-dev
	wayland-protocols
	wayland-dev
	dbus-dev
	tllist-dev
	fcft-dev
	scdoc
	"
subpackages="$pkgname-doc $pkgname-zsh-completion"
source="$pkgname-$pkgver-1.tar.gz::https://codeberg.org/dnkl/fnott/archive/$pkgver.tar.gz"
builddir="$srcdir/fnott"
options="!check" # no test suite

build() {
	abuild-meson . output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output

	# fix config file location
	install -d "$pkgdir"/etc/xdg/fnott
	mv "$pkgdir"/usr/share/fnott/fnott.ini "$pkgdir"/etc/xdg/fnott/
}

sha512sums="
130ec5cd8897cc6ee171a09ea786c6cef1d042f7b8830ec3b1e05668f33b9ebc2a56f77f09fab3ff9c9b8f91fda39fca8213daf5afb470b807331e701feb4202  fnott-1.4.1-1.tar.gz
"
